import { RouteRecordRaw } from 'vue-router';
import { Layout } from '@/router/constant';
import { WarningOutlined } from '@vicons/antd';
import { renderIcon } from '@/utils/index';

const routes: RouteRecordRaw = {
  path: '/report',
  name: 'report',
  component: Layout,
  meta: {
    title: '举报管理',
    icon: renderIcon(WarningOutlined),
    sort: 8,
  },
  children: [
    {
      path: 'list',
      name: 'reportList_index',
      meta: {
        title: '举报列表',
      },
      component: () => import('@/views/reportList/reportList/index.vue'),
    },
    {
      path: 'detail/:id',
      name: 'report_detail',
      meta: {
        title: '举报详情',
        hidden: true,
        activeMenu: 'reportList_index',
      },
      component: () => import('@/views/reportList/reportList/info.vue'),
    },
  ],
};

export default routes; 